//
//  OCUserInfoViewModel.h
//  ocVB
//
//  Created by apple on 2016/10/27.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@class OCUserInfoModel;
@interface OCUserInfoViewModel : NSObject
///用户信息对象
@property(nonatomic,strong)OCUserInfoModel * userModel;
/// 是否登录
@property(nonatomic,assign)BOOL isLogin;
///token
@property(nonatomic,copy)NSString *accessToken;

+(instancetype)sharedInfoModel;

- (void)saveData:(OCUserInfoModel *)model;

- (OCUserInfoModel *)GetData;

- (void)getUserAccount:(NSString *)code finish:(void(^)(BOOL))finish;

@end
